Introducing Jupyter Notebooks

What you're looking at is a Jupyter notebook. These will be the foundation for nearly all of our computational work in the course.

Scientists, engineers, mathematicians, and all sorts of technical folks use Jupyter Notebooks to get work done. That means the tools you're working with (including other parts of Python we'll see) are exactly the same tools being used every day in industry and research. Take a look at this list of interesting Jupyter notebooks to see some neat ones!

What is a Jupyter Notebook?

A Notebook is made up of cells, like this one. We'll mainly be using two types of cells:

  • Markdown Cells, which will use to write in text
  • Python Cells, where we can write Python code, run that code, and get results

To see how cells work, try double-clicking on this text and seeing what happens.

What can we do with Jupyter Notebooks?

Lots! We can run python code, like this:


In [ ]:
print("Inspirational Astronauts")

astronauts = [
    "Sally Ride",
    "Mae Jemison",
    "Ronald McNair",
    "Judith Resnick"
]

for astronaut in astronauts:
    print("Dr. %s" % astronaut)

In [ ]:


In [ ]: